﻿@{
    ViewBag.Title = "程序日志";
    Layout = "~/Views/Shared/_TreeListLayout.cshtml";
}

<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'west',width:120">
        <ul id="tree_logcategory" data-options="url:'/logcategory/treewithotherjson/1',onClick:CreatePage,animate:true,lines:true"></ul>
    </div>
    <div id="div_logcategory" class="yhidden" data-options="region:'center',border:false">
    </div>
</div>
@section Bottom{
    <script type="text/javascript">
        var objBizTree = new BizTree("#tree_logcategory");
        function CreatePage(node) {
            $div = $("#div_logcategory");
            $div.children().remove();
            var lcIds;
            var logCategoryIds = [];
            logCategoryIds.push(node.id);
            $.each(node.children, function (i, item) {
                logCategoryIds.push(item.id);
            });
            lcIds = logCategoryIds.join(',');
            $div.append(CreateiFrame("/LogInfo/LogInfoIndex?TransferID=" + lcIds + "&TransferTwoID=" + node.text));
        }
    </script>
}
